package org.desktop.web.client.emails;

import java.util.Map;

import org.desktop.web.shared.domain.entities.Email;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.sencha.gxt.data.shared.loader.PagingLoadConfig;
import com.sencha.gxt.data.shared.loader.PagingLoadResult;

public interface EmailServiceAsync {

	void getEmailByUser(int idUser, Map<String, String> headers,
			PagingLoadConfig loadConfig,
			AsyncCallback<PagingLoadResult<Email>> callback);

	void delete(Map<String, String> headers, Email email,AsyncCallback<Boolean> callback);

}
